package com.part.service.impl;

import com.domain.Pagination;
import com.domain.Part;
import com.part.dao.FindPartDao;
import com.part.dao.impl.FindPartDaoImpl;
import com.part.service.ShowListenerPartService;

public class ShowListenerPartServiceImpl implements ShowListenerPartService {
	private FindPartDao findPartDao = new FindPartDaoImpl();
	@Override
	public void show(Pagination<Part> pagination) {
		pagination.setCount(findPartDao.findListenerCount());
		pagination.setList(findPartDao.findListenerList(pagination));
	}

}
